.class Lcom/instagram/android/creation/a/c;
.super Lcom/instagram/android/r/b;
.source "RenderUploadCallback.java"


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/a/b;


# direct methods
.method constructor <init>(Lcom/instagram/android/creation/a/b;Landroid/content/Context;IILcom/instagram/pendingmedia/model/c;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 41
    iput-object p1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-direct {p0, p2, p3, p4, p5}, Lcom/instagram/android/r/b;-><init>(Landroid/content/Context;IILcom/instagram/pendingmedia/model/c;)V

    return-void
.end method

.method private c(Lcom/instagram/pendingmedia/model/c;)V
    .locals 5
    .parameter

    .prologue
    .line 82
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 84
    iget-object v1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v1}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "latitude"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v1}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "longitude"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 87
    const-string v1, "latitude"

    iget-object v2, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v2}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "latitude"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getDouble(Ljava/lang/String;)D

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V

    .line 91
    const-string v1, "longitude"

    iget-object v2, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v2}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "longitude"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getDouble(Ljava/lang/String;)D

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Bundle;->putDouble(Ljava/lang/String;D)V

    .line 96
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v1}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "originalWidth"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v1}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "originalHeight"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 99
    const-string v1, "originalWidth"

    iget-object v2, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v2}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "originalWidth"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 103
    const-string v1, "originalHeight"

    iget-object v2, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v2}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "originalHeight"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 108
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v1}, Lcom/instagram/android/creation/a/b;->c(Lcom/instagram/android/creation/a/b;)Lcom/instagram/creation/base/a;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v2}, Lcom/instagram/android/creation/a/b;->b(Lcom/instagram/android/creation/a/b;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v3}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v3

    const-string v4, "directShare"

    invoke-virtual {v3, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v3

    invoke-interface {v1, v2, v3, v0}, Lcom/instagram/creation/base/a;->a(Ljava/lang/String;ZLandroid/os/Bundle;)V

    .line 112
    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .prologue
    .line 69
    iget-object v0, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v0}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->unable_to_save_upload_image:I

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 73
    return-void
.end method

.method protected a(Lcom/instagram/pendingmedia/model/c;)V
    .locals 2
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v0}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    if-nez v0, :cond_0

    .line 65
    :goto_0
    return-void

    .line 57
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v0}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->button_accept:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 58
    if-eqz v0, :cond_1

    .line 59
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 62
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/a/c;->a:Lcom/instagram/android/creation/a/b;

    invoke-static {v0}, Lcom/instagram/android/creation/a/b;->a(Lcom/instagram/android/creation/a/b;)Lcom/instagram/android/creation/b/al;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->ae()V

    .line 64
    invoke-super {p0, p1}, Lcom/instagram/android/r/b;->a(Lcom/instagram/pendingmedia/model/c;)V

    goto :goto_0
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 41
    check-cast p1, Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {p0, p1}, Lcom/instagram/android/creation/a/c;->a(Lcom/instagram/pendingmedia/model/c;)V

    return-void
.end method

.method public b(Lcom/instagram/pendingmedia/model/c;)V
    .locals 0
    .parameter

    .prologue
    .line 77
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/a/c;->c(Lcom/instagram/pendingmedia/model/c;)V

    .line 78
    return-void
.end method
